import httpx


currency_date = '2023-01-01'
response = httpx.get(
    f'https://api.frankfurter.app/{currency_date}',
    params={'from': 'USD', 'to': 'EUR'},
)

print(response.json())
print(response.raise_for_status())